package com.autumn.zero.workflow.listeners;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import com.autumn.spring.boot.context.AutumnApplicationContext;
import com.autumn.zero.workflow.services.IListenerService;

/**
 * 任务监听
 * 
 * @author 杨昌国 2019-01-10 17:57:09
 */
public class ZeroTaskListener implements TaskListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5789295185502839953L;

	@Override
	public void notify(DelegateTask delegateTask) {
		IListenerService service = AutumnApplicationContext.getContext().getBean(IListenerService.class);
		service.taskListenerNotify(delegateTask);
	}

}
